package com.qipay.cpinfo.service;


import com.qipay.baas.model.CpInfo;

import java.util.List;

public interface CpInfoService {
    List<CpInfo> getByCondition(String name, String legalPerson, String contacts, String contactsMobile, int p, int pz);

    long countByCondition(String name, String legalPerson, String contacts, String contactsMobile);

    CpInfo get(long id);

    long update(CpInfo cpInfo);

    int insert(CpInfo cp);

    int delete(long id);

    List<CpInfo> getByConditionAndTypeAgentId(byte type, Long cpId, Long agentId, String name, String legalPerson, String contacts, String contactsMobile, Byte accountState, int p, int pz);

    long countByConditionAndTypeAgentId(byte type, Long cpId,Long agentId, String name, String legalPerson, String contacts, String contactsMobile, Byte accountState);

    List<CpInfo> listAll();

    List<CpInfo> listByAgent(Long cpId);

    List<CpInfo> listByCpType(byte type);
}
